<template>
  <el-card>
    <template #header>
      <span style="font-weight: bold">{{ orgDetail.fullname }}</span>
    </template>
    <el-form :model="orgDetail">
      <el-form-item label="公司全称">
        <el-input
          v-model="orgDetail.fullname"
          placeholder=""
          style="width: 400px"
        ></el-input>
      </el-form-item>
      <el-form-item label="公司简称">
        <el-input
          v-model="orgDetail.shortname"
          placeholder=""
          style="width: 400px"
        ></el-input>
      </el-form-item>
      <el-form-item label="公司简称">
        <el-input
          v-model="orgDetail.shortname"
          placeholder=""
          style="width: 400px"
        ></el-input>
      </el-form-item>
    </el-form>
  </el-card>
</template>
<script setup lang="ts">
import useIbdStore from '@/store/modules/ibd'
import { storeToRefs } from 'pinia'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'

let $route = useRoute()
let IbdStore = useIbdStore()
const { orgDetail } = storeToRefs(IbdStore)
console.log(orgDetail.fullname)

// console.log($route);
onMounted(() => {
  IbdStore.getOrganizationDetail($route.params.id)
})
</script>
<style scoped lang="scss"></style>
